// Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// The Authorize story has a more sophisticated styling which is outsourced
// to this stylus file.

.left
  flex-basis: 65%
  padding-right: $cs.m
  +media-query($bp.sm)
    flex-basis: 100%
    flex-grow: 0
    margin-bottom: $ls.m

  ul
    text-margin-top()
    padding-left: 0

  li
    display: flex
    align-items: flex-start

  li > span
    nudge('down', 3px)
    color: var(--c-bg-info-normal)
    margin-right: $cs.xxs

.right
  +media-query($bp.sm)
    flex-grow: 0
    padding-top: 3rem
    background: url('../../assets/misc/oauth-arrow-hor.svg') no-repeat
  +media-query-min($bp.sm)
    flex-basis: 35%
    padding-left: 3rem
    background: url('../../assets/misc/oauth-arrow.svg') no-repeat

  h3
    one-liner()
    margin-bottom: $cs.m

    span
      one-liner()
      nudge('up', 2px)
      font-size: $fs.s
      font-weight: $fw.bold
      text-transform: uppercase
      color: var(--c-text-brand-normal)
      border: 1px solid var(--c-text-brand-normal)
      border-radius: $br.xs
      padding: $cs.xxs
      margin-left: $cs.xxs

.login-info
  color: var(--c-text-neutral-heavy)

.redirect-info
  span
    color: var(--c-text-brand-normal)
